package com.zero.manage.web.components.service;

import com.zero.manage.web.components.base.IBase;
import com.zero.manage.web.components.dto.GenDto;
import com.zero.manage.web.components.entity.DatabaseInfoEntity;
import com.zero.manage.web.components.query.DatabaseInfoQuery;
import io.gitee.zerowsh.util.PublicResult;
import org.springframework.stereotype.Repository;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@Repository
public interface DatabaseInfoService extends IBase<DatabaseInfoEntity, String, DatabaseInfoQuery> {
    PublicResult select();

    PublicResult getCatalogs(String databaseInfoId);

    PublicResult getTableInfo(String databaseInfoId, String catalog);


    PublicResult generatorCode(GenDto genDto, HttpServletResponse response) throws IOException;
}
